package com.gkzf.ai.module.crm.controller.admin.creditReport.vo.creditreport;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - CRM 征信报告新增/修改 Request VO")
@Data
public class CreditReportSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28125")
    private Long id;

    /**
     * 征信报告基础表id
     */
    @Schema(description = "征信报告基础表id", requiredMode = Schema.RequiredMode.REQUIRED,example = "1")
    private Long creditBasicId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "名称对应value", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "名称对应value不能为空")
    private String value;

    @Schema(description = "0：正在解析 1：解析完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "0：正在解析 1：解析完成不能为空")
    private Boolean status;

    @Schema(description = "上级Id", example = "20015")
    private Long parentId;

}